//导入mongoose
const mongoose=require('./connect')


//购物车表的schema
const cartSchema=new mongoose.Schema({
    //商品id
    dishId:String,
    //用户id
    userId:String,
    number:Number,
    //规格类型
    speandkind:String,
})


const cartModel=mongoose.model('cart',cartSchema,'cart')

module.exports=cartModel